<template>
	<view v-if="role == 2">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'staffAuth',
		data() {
			return {
				role : -1
			};
		},
		created() {
			this.role = uni.getStorageSync("role");
		}
	}
</script>
